package com.junjie.checkin.request.activity;

import lombok.Data;

@Data
public class RegistrationListPageRequest {
    //页码，从1开始
    private Integer page;

    //每页条数
    private Integer pageSize;

    //活动id
    private Integer activityId;

    //学号或者姓名
    private String usernameOrNickname;

    //状态
    private String status;

    public void initDefault(){
        if(page == null || page <=0 ){
            this.page=1;
        }
        if (pageSize == null || pageSize <=0){
            this.pageSize=4;
        }
    }

}
